package com.gongzhiyun.springboot3test.entity.novel;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@TableName("novel_types")
@Schema(description = "小说类型表")
public class NovelTypes implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @Schema(description = "主键", example = "1")
    private Integer id;
    @Schema(description = "小说类型名称", example = "玄幻")
    private String typeName;
    @Schema(description = "小说类型简介", example = "玄幻")
    private String typeInfo;

    private Integer idId;
    @Schema(description = "小说类型频道", example = "m:男,n:保密,f:女性")
    private String sex;
    @Schema(description = "封面图片", example = "gzy")
    private String typeImg;

}
